cmake_minimum_required(VERSION 3.17)
project(add_exe_4)

#add_executable(main main.cpp)
add_executable(main EXCLUDE_FROM_ALL main.cpp)

get_property(var TARGET main PROPERTY EXCLUDE_FROM_ALL)
message(STATUS "EXCLUDE_FROM_ALL = ${var}")
